package o;

import android.text.TextUtils;
import o.egh.c;

public class ege implements c {
    private efz ˊ;
    private egh ˎ;
    private d ˏ;
    private boolean ॱ = false;

    public interface d {
        void ʼॱ();

        void ˉ();

        void ˊˋ();

        void ˊᐝ();

        void ॱˊ();

        void ᐝॱ();
    }

    class a implements egh {
        private c ˋ;
        final /* synthetic */ ege ॱ;

        a(ege o_ege, c cVar) {
            this.ॱ = o_ege;
            this.ˋ = cVar;
        }

        public void ˎ() {
            this.ॱ.ˏ.ॱˊ();
        }

        public void ॱ() {
            this.ॱ.ˏ.ᐝॱ();
        }

        public void ˋ() {
            this.ˋ = null;
        }

        public void ˋ(boolean z) {
            if (this.ˋ == null) {
                return;
            }
            if (z) {
                this.ˋ.ˋ();
            } else {
                this.ˋ.ˏ();
            }
        }
    }

    class e implements egh {
        final /* synthetic */ ege ˎ;
        private c ॱ;

        e(ege o_ege, c cVar) {
            this.ˎ = o_ege;
            this.ॱ = cVar;
        }

        public void ˎ() {
            this.ˎ.ˏ.ʼॱ();
        }

        public void ॱ() {
            this.ˎ.ˏ.ˊᐝ();
        }

        public void ˋ() {
            this.ॱ = null;
        }

        public void ˋ(boolean z) {
            if (this.ॱ == null) {
                return;
            }
            if (z) {
                this.ॱ.ˋ();
            } else {
                this.ॱ.ˏ();
            }
        }
    }

    public ege(d dVar) {
        this.ˏ = dVar;
        this.ˊ = (efz) egv.ॱᐝ();
    }

    public boolean ॱ() {
        return this.ॱ;
    }

    public void ॱ(boolean z) {
        this.ॱ = z;
    }

    public void ˋ() {
        ॱ(true);
        this.ˏ.ˊˋ();
    }

    public void ˏ() {
        ॱ(false);
        this.ˏ.ˉ();
    }

    public void ˎ() {
        Object obj = null;
        if (this.ˎ != null) {
            this.ˎ.ˋ();
        }
        int i;
        if (this.ˊ.ॱˎ()) {
            this.ˎ = new e(this, this);
            if (this.ˊ.ʻॱ()) {
                i = 1;
            }
        } else {
            this.ˎ = new a(this, this);
            if (!TextUtils.isEmpty(euf.ˎ().ॱ("password", ""))) {
                i = 1;
            }
        }
        if (obj == 1) {
            this.ˎ.ˎ();
        } else {
            this.ˎ.ॱ();
        }
    }

    public void ˊ(boolean z) {
        if (this.ˎ instanceof a) {
            this.ˎ.ˋ(z);
        }
    }

    public void ˎ(boolean z) {
        if (this.ˎ instanceof e) {
            this.ˎ.ˋ(z);
        }
    }
}
